<%--
  @desc: 系统字典列表
  @author: chenw
  @create: 2014-4-29 下午 15:32
--%>
<%@ page contentType="text/html;charset=utf-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<style type="text/css">
</style>
<div class="pageContent" style="padding-top: 1px;height: 400px;">
    <table class="table" width="100%" layoutH="114">
        <thead>
        <tr>
            <th width="40" align="center">序号</th>
            <th width="95">字典标题</th>
            <th width="120">字典值</th>
            <th width="30">排序</th>
            <th width="70">系统加载</th>
            <th>备注</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach var="dict" items="${pager.list}" varStatus="vs">
            <tr target="sel_id" rel="${dict.id}" onclick="showDetail('${dict.id}')" id="${dict.id}">
                <td>${vs.count+(pager.pageNum-1)*pager.numPerPage}</td>
                <td title="${dict.title}">${dict.title}</td>
                <td title="${dict.val}">${dict.val}</td>
                <td>${dict.sort}</td>
                <td>${dict._autoLoad}</td>
                <td title="${dict.remark}">${dict.remark}</td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
    <div class="panelBar test">
        <div class="pages">
            <span>共${pager.total}条</span>
        </div>
    </div>
</div>
<script type="text/javascript">
    //点击触发查看并可以修改
    function showDetail(id) {
        $("#dict_show").loadUrl("<c:url value='/sys/dict/view/@'/>".replace("@", id));
    }
</script>